//package com.admin.config.security.demoOne;
//
//import org.springframework.context.annotation.Bean;
//import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
//import org.springframework.security.core.userdetails.User;
//import org.springframework.security.core.userdetails.UserDetailsService;
//import org.springframework.security.provisioning.InMemoryUserDetailsManager;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//
///**
// * 第一步
// * springSecurityFilterChain 负责所有web资源的安全
// * 即为 selevet 过滤器
// * 仅包含有关如何验证用户身份的信息
// */
////@EnableWebSecurity
//public class WebSecurityConfig implements WebMvcConfigurer {
//
//  //  @Bean
//    public UserDetailsService userDetailsService() throws Exception {
//        InMemoryUserDetailsManager manager = new InMemoryUserDetailsManager();
//        manager.createUser(User.withDefaultPasswordEncoder().username("user").password("password").roles("USER").build());
//        return manager;
//    }
//}